function map = vm_maprender(src_img, blk_list, blk_type)
% VM_MAPRENDER: render the map
% TuanND
% 04/03/13

[nbpr nbpc] = size(blk_list);
blk_map = cell(nbpr, nbpc);
for i = 1:nbpr
    for j = 1:nbpc
        type = blk_type(i,j);
        blk = blk_list{i,j};
        blk_map{i,j} = ones(size(blk)) * type;
    end
end
map = cell2mat(blk_map);
end